package shiyan3;

public class Test {
    public static void main(String[] args) {
        AbstractFactory huawei = FactoryProducer.getFactory("huawei");
        System.out.println(huawei.createHuaWei("phone").create());
        AbstractFactory xiaomi = FactoryProducer.getFactory("xiaomi");
        System.out.println(xiaomi.createXiaoMi("shouhuan").create());
    }
}
